.TH std::binomial_distribution::operator() 3 "2024.06.10" "http://cppreference.com" "C++ Standard Libary"
.SH NAME
std::binomial_distribution::operator() \- std::binomial_distribution::operator()

.SH Synopsis
   template< class Generator >                                       \fB(1)\fP \fI(since C++11)\fP
   result_type operator()( Generator& g );
   template< class Generator >                                       \fB(2)\fP \fI(since C++11)\fP
   result_type operator()( Generator& g, const param_type& params );

   Generates random numbers that are distributed according to the associated
   probability function. The entropy is acquired by calling g.operator().

   The first version uses the associated parameter set, the second version uses params.
   The associated parameter set is not modified.

.SH Parameters

   g        -  a uniform random bit generator object
   params   -  distribution parameter set to use instead of the associated one
.SH Type requirements
   -
   Generator must meet the requirements of UniformRandomBitGenerator.

.SH Return value

   The generated random number.

.SH Complexity

   Amortized constant number of invocations of g.operator().
